﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Threading;
using System.Windows.Forms;

namespace 智信科技物流系统
{
    public class Userini
    {
        public static string UserName;//用户名
        public static DataTable userinfor = new DataTable();//存储用户的个人信息
    }

    public class something
    {
        public static bool loaded;//判断加载完成
        public static int test = 0;
    }
    //重发设置
    public class repeatini
    {
        public static List<string> initype = new List<string>();
        public static List<string> inicontent = new List<string>();
        public static List<int> initime = new List<int>();
        public static List<int> ininum = new List<int>();
        public static List<int> id = new List<int>();
    }
    public class firstload
    {
        public static bool exit = true;
        //  public static bool MainLoad = false;//主窗体第一次加载数据，完成为true
        //   public static bool ReleaseLoad = false;//发布窗体加载是否完成
    }
    public class Logistics//物流信息类,这个是缓冲区
    {
        public static List<oneLogistics> list = new List<oneLogistics>();//存储缓冲数据 
    }

    public class oneLogistics//一条物流信息类
    {
        //计数确定一条数据的完整性,第0个字段存放一共有几条数据,第1-13为1代表有数据
        public int[] num;

        public oneLogistics()
        {
            num = new int[14];
        }

        //数据库Release的字段,初值仅用于参考
        private string id = "id";
        private string UserName = "UserName";
        private string InformationType = "InformationType";
        private string ReleaseTo = "ReleaseTo";
        private string DepartureCity = "DepartureCity";
        private string ReachCity = "ReachCity";
        private string DepartureTime = "DepartureTime";
        private string QQ = "QQ";
        private string Fax = "Fax";
        private string FixedTelephone = "FixedTelephone";
        private string MobilePhone = "MobilePhone";
        private string InformationContent = "InformationContent";
        private string AutoRetransmission = "AutoRetransmission";//暂时废弃

        public string Id
        {
            get { return id; }
            set { id = value; num[0] += 1; num[1] = 1; }
        }
        public string InformationType1
        {
            get { return InformationType; }
            set { InformationType = value; num[0] += 1; num[2] = 1; }
        }
        public string ReleaseTo1
        {
            get { return ReleaseTo; }
            set { ReleaseTo = value; num[0] += 1; num[3] = 1; }
        }
        public string DepartureCity1
        {
            get { return DepartureCity; }
            set { DepartureCity = value; num[0] += 1; num[4] = 1; }
        }
        public string ReachCity1
        {
            get { return ReachCity; }
            set { ReachCity = value; num[0] += 1; num[5] = 1; }
        }
        public string InformationContent1
        {
            get { return InformationContent; }
            set { InformationContent = value; num[0] += 1; num[6] = 1; }
        }
        public string MobilePhone1
        {
            get { return MobilePhone; }
            set { MobilePhone = value; num[0] += 1; num[7] = 1; }
        }
        public string FixedTelephone1
        {
            get { return FixedTelephone; }
            set { FixedTelephone = value; num[0] += 1; num[8] = 1; }
        }
        public string Fax1
        {
            get { return Fax; }
            set { Fax = value; num[0] += 1; num[9] = 1; }
        }
        public string QQ1
        {
            get { return QQ; }
            set { QQ = value; num[0] += 1; num[10] = 1; }
        }
        public string AutoRetransmission1
        {
            get { return AutoRetransmission; }
            set { AutoRetransmission = value; num[0] += 1; num[11] = 1; }
        }
        public string UserName1
        {
            get { return UserName; }
            set { UserName = value; num[0] += 1; num[12] = 1; }
        }
        public string DepartureTime1
        {
            get { return DepartureTime; }
            set { DepartureTime = value; num[0] += 1; num[13] = 1; }
        }
    }

    public class Wordthing
    {
        //词组短语
        public static string[] buttons1 = { "[常用短语]", "[常用词]", "[单位]", "[运费]", "[货物大类]", "[货物中类]", "[货物小类]", "[车辆长度]" };
        public static string[] buttons2 = { "[车辆类型]", "[地方特色关键字]", "[其他]" };
        public static string[] cizu0 = { "重货", "设备", "钢材", "板材", "钢管", "货到自提", "有货速联系", "有车速联系" };
        public static string[] duanyu = { "随车装", "货到自提", "车已定好，", "马上装车，", "不占空间，", "请打手机，", "更正信息", "在一个厂装，",
                           "货在本站，", "货主在本站等，", "货主跟车，", "货主管饭，", "两货可一起走，", "今天定车，明早装货，", 
                           "晚上也可以装，", "求多部后八轮或半挂，", "求大小车，", "货已定，请勿打扰。", 
                           "装车付一半运费，货到付清。", "货到就卸，不压车！" };
        public static string[] cizu2 = { "货源：", "车源：", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", " ", "，", "。", ".", ";", "-", ">", "/", "\n" };
        public static string[] cizu = { "车型不限", "吨位不限", "运价面议", "超宽设备", "价钱好商量", "价高急走", "要半挂 ", "求零担 ", "装车付款", "可车装,三不超" };
        public static string[] cizu3 = { "急", "需", "要", "求", "有", "发", "到", "回", "去", "车", "货", "吨", "米", "元", "多", "少", "定", "部", "订", "大", "小", "长", "宽" };
        public static string[] cizu4 = { "空", "高", "半", "超", "付", "清", "款", "回", "或", "个", "到", "各", "限", "拉", "占", "方", "可", "走", "装", "号", "每" };

        public static DataTable Province = new DataTable();
        public static DataTable UserPhrase = new DataTable();
        
    }

    class SearchDetail
    {
        public static string Id { get; set; }
        public static string InformationType { get; set; }
        public static string ReleaseTo { get; set; }
        public static string DepartureCity { get; set; }
        public static string ReachCity { get; set; }
        public static string InformationContent { get; set; }
        public static string Phone { get; set; }
        public static string Telephone { get; set; }
        public static string Fax { get; set; }
        public static string QQ { get; set; }
        public static string UserName { get; set; }
        public static string DepartureTime { get; set; }
    }
}
